<?Php
	require_once('Model/getconfig.php');
	$username=$_REQUEST['username'];			

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>adways.biz -  Kerala's largest site for listing business and personal details, directory</title>
<meta name="description" content="Search and find business/service near your home through a simple click. Refined locality wise search gives you immediate results. Send instant sms/email to the required business/service. Also access contact details for free. Post Your details: Add your business/service and maximize visibility ">

	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
	<script>
		!window.jQuery && document.write('<script src="jquery-1.4.3.min.js"><\/script>');
	</script>
	<script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
	<script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.4.css" media="screen" />
 	<link rel="stylesheet" href="style.css" />
	<script type="text/javascript">
		$(document).ready(function() {
			/*
			*   Examples - images
			*/


			$("a#example2").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});




		});
	</script>

<link href="css/adways.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.style22 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #336600;
	font-weight: bold;
}
.style28 {font-variant: normal; text-transform: uppercase; text-align: left; font-style: normal; line-height: normal;}
</style>
</head>

<body>
 <?php require_once('header.php') ?>
          <?Php
		$count=0;	

	$arrMenu=Model_membermaster::get_member_details_user($username);
	foreach($arrMenu as $objMenu){ 
		$count++;
		$Address=$objMenu->getAddress(); 
		$Firstname=$objMenu->getFirstname();
		$Details=$objMenu->getDetails();
		$Mobileno=$objMenu->getMobileno();	
		$Djoin=$objMenu->getDjoin();
		$email=$objMenu->getEmail();
		$website=$objMenu->getWebsite();		
		$Businesstype=$objMenu->getBusinesstype();
		$Businesssubfield=$objMenu->getBusinesssubfield();
	
}	
		$imagename="no-image.jpg";

		
?> 
<div class="container2">
<div id="mainpage">
    <div id="leftbox">
      <div class="leftmenu">
        <table width="100%" height="86" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
          <tr>
            <td height="30" colspan="3" bgcolor="#FFFFFF" class="titile12pxblack">Refine Search by District</td>
          </tr>
          <tr>
            <?Php
	$count=0;
	$arrMenu=Model_listeddistrict::get_Listeddistrictvalue();
	foreach($arrMenu as $objMenu){ 
		$count=$count+1;
		$Buylisted=0;
		$District=$objMenu->getDistrict(); 
		$listed=$objMenu->getLlisted(); 
?>
            <td width="50%" height="27" bgcolor="#FFFFFF"><a  href="districtwise_list.php?VL=<?Php echo $District ?>" target="_parent" title="<?Php echo $District ?>" ><span class="districtcountlink">&nbsp;&nbsp;<?Php echo $District ?> (<?Php echo $listed ?>)</span></a></td>
            <?Php
		  if($count%2==0){
?>
          </tr>
          <tr>
            <?Php		}	  
		}
?>
          </tr>
        </table>
      </div>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
    </div>
    <div id="centerbox">
      <div class="centercontent">
        <table width="100%" border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td height="27" bgcolor="#666666"><span class="searchtitile style2"><?Php echo $Businesstype ?> [ <?Php echo $Businesssubfield ?> ]</span></td>
          </tr>
          <tr>
            <td height="97"><span class="style7">Name:</span> <span class="style22"><?Php echo $Firstname ?></span><span class="textdetails"><br />              
              <img src="images/address.jpg" width="16" height="16" />: <?Php echo $Address ?><br />
              <img src="images/mobile.jpg" width="10" height="10" /> : <?Php echo $Mobileno ?></span><br />                
              <img src="images/email-icon.gif" width="16" height="16" /> :<span class="style7"> <?Php echo $email ?></span><br />  
             <span class="style7">Web :  <a href="http://<?Php echo $website ?>/" target="_blank" ><?Php echo $website ?></a>              </span>              </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="27" bgcolor="#666666"><span class="searchtitile"><span class="style4 style2">Business Description</span></span></td>
          </tr>
          <tr>
            <td height="154" valign="top"><div class="description"><?Php echo $Details ?></div></td>
          </tr>
          <tr>
            <td height="21" valign="top" bgcolor="#666666"><span class="searchtitile"><span class="style4 style2">PHOTO GALLERY </span></span></td>
          </tr>
          <tr>
            <td height="154" valign="top"><table width="100%" border="0" cellspacing="4" cellpadding="2">
              <tr>
<?Php
	$count=0;
	$arrMenuimage=Model_generalimage::get_GeneralImage($id);
	foreach($arrMenuimage as $objMenuimage){ 
		$count++;
		$imagename=$objMenuimage->getimagename();
		$arr = array($count => $imagename);
		//echo "haiii".$arr["1"]; // bar
	//	echo $arr[$count];    // 1	
?>
<td height="144"><div align="center"><a id="example2" href="WebUploads/uploadedimages/<?Php echo $arr[$count]; ?>"><img alt="example2" src="WebUploads/uploadedimages/<?Php echo $arr[$count]; ?>"  width="113" height="113" border="1" style="border-color:#999999"/></a></div></td>
<?Php	
if($count%4==0) 
{	?>
</tr><tr>
<?Php
}
		
	}	
	?>			  

              </tr>
            </table></td>
          </tr>
        </table>
        <br />
      </div>

  </div>
</div>
<div id="footer"><div id="footermain">
  <div class="col">
    <h4>About us</h4>
    <p>&nbsp;</p>
</div>
  <div class="col">
    <h4>advertisement</h4>
    <p>&nbsp;</p>
</div>
  <div class="col">
    <h4>contactus</h4>
    <p>&nbsp;</p>
</div>
  <div class="col">
    <h4>faq</h4>
    <p>&nbsp;</p>
</div>
</div>
</div>
</div>

</body>
</html>
